package com.hansming.bss.modules.sfc.entity;

import java.math.BigDecimal;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.hansming.bss.common.persistence.DataEntity;

/**
 * 房车额外展示信息Entity
 * @author Hansming
 * @version 2017-09-15
 */
public class CarExtr extends DataEntity<CarExtr>{
		
		/**
		 * 
		 */
	private static final long serialVersionUID = 1L;
		private CarInfo				carInfo;
//	    private String 				license;										//驾照  	 *     注：*为现在不在页面内容中显示的属性
		private String 				equipment;   									//设备	 
	    private String 				coty;											//车龄	 *
	    private String 				water;											//水箱    
	    private String 				carsize; 										//汽车尺寸   *
	    private String 				chassis;										//房车底盘信息
	    private String				graywater;										//灰水箱
	    private String 				blackwater;										//黑水箱
	    private String 				oil;											//油箱容量
	    private int 				icebox;										//冰箱			1有，0无
	    private int 				livingAircon;								//起居室空调 		1有，0无
	    private int 				livingHeating;								//起居室暖气 		1有，0无
	    private int 				cabAircon;									//驾驶室空调		1有，0无
	    private int 				cabHeating;									//驾驶室暖气		1有，0无
	    private int 				mileage;									//里程限制
	    private BigDecimal 			deposite;											//租车押金
	    private	BigDecimal			foregift;											//违章押金
	    private String 				buybackpolicy;										//退改规则
	    private int 				exchange;											//积分兑换金额比例 
	    private String 				detailinformation;									//车辆详情
	    private String 				photos;												//详情页展示的图片
	    private List<CarServe> 		carServes;											//房车包含的服务选项
	    private String 				preinfo;											//预定须知
	    private String				insuranceinfo;											//保险内容
	    
	    
	    
	    public CarExtr(){
	    	super();
	    	this.exchange = 100;
			this.icebox = 0;
			this.livingAircon = 0;
			this.livingHeating = 0;
			this.cabAircon = 0;
			this.cabHeating = 0;
	    }
	    
//	    @Length(min=0, max=255)
//		public String getLicense() {
//			return license;
//		}
//
//		public void setLicense(String license) {
//			this.license = license;
//		}
	    
	    @Length(min=0, max=255)
		public String getWater() {
			return water;
		}

		public void setWater(String water) {
			this.water = water;
		}
		
		@Length(min=0, max=255)
		public String getCoty() {
			return coty;
		}

		public void setCoty(String coty) {
			this.coty = coty;
		}
		
		@Length(min=0, max=255)
		public String getEquipment() {
			return equipment;
		}

		public void setEquipment(String equipment) {
			this.equipment = equipment;
		}
		
		@Length(min=0, max=255)
		public String getCarsize() {
			return carsize;
		}

		public void setCarsize(String carsize) {
			this.carsize = carsize;
		}
		
		@Length(min=0, max=255)
		public String getChassis() {
			return chassis;
		}

		public void setChassis(String chassis) {
			this.chassis = chassis;
		} 
		
		@Length(min=0, max=255)
		public String getGraywater() {
			return graywater;
		}

		public void setGraywater(String graywater) {
			this.graywater = graywater;
		}
		
		@Length(min=0, max=255)
		public String getBlackwater() {
			return blackwater;
		}

		public void setBlackwater(String blackwater) {
			this.blackwater = blackwater;
		}
		
		@Length(min=0, max=255)
		public String getOil() {
			return oil;
		}

		public void setOil(String oil) {
			this.oil = oil;
		}

		public int getIcebox() {
			return icebox;
		}

		public void setIcebox(int icebox) {
			this.icebox = icebox;
		}

		public int getLivingAircon() {
			return livingAircon;
		}

		public void setLivingAircon(int livingAircon) {
			this.livingAircon = livingAircon;
		}

		public int getLivingHeating() {
			return livingHeating;
		}

		public void setLivingHeating(int livingHeating) {
			this.livingHeating = livingHeating;
		}

		public int getCabAircon() {
			return cabAircon;
		}

		public void setCabAircon(int cabAircon) {
			this.cabAircon = cabAircon;
		}

		public int getCabHeating() {
			return cabHeating;
		}

		public void setCabHeating(int cabHeating) {
			this.cabHeating = cabHeating;
		}

		public CarInfo getCarInfo() {
			return carInfo;
		}

		public void setCarInfo(CarInfo carInfo) {
			this.carInfo = carInfo;
		}
		
		public int getMileage() {
			return mileage;
		}

		public void setMileage(int mileage) {
			this.mileage = mileage;
		}
		
		public BigDecimal getDeposite() {
			return deposite;
		}

		public void setDeposite(BigDecimal deposite) {
			this.deposite = deposite;
		}
		
		@Length(min=0, max=500)
		public String getBuybackpolicy() {
			return buybackpolicy;
		}

		public void setBuybackpolicy(String buybackpolicy) {
			this.buybackpolicy = buybackpolicy;
		}


		public int getExchange() {
			return exchange;
		}


		public void setExchange(int exchange) {
			this.exchange = exchange;
		}
		
		@Length(min=0, max=10000)
		public String getDetailinformation() {
			return detailinformation;
		}

		public void setDetailinformation(String detailinformation) {
			this.detailinformation = detailinformation;
		}
		
		@Length(min=0, max=4000)
		public String getPreinfo() {
			return preinfo;
		}

		public void setPreinfo(String preinfo) {
			this.preinfo = preinfo;
		}
		
		
		

		@Length(min=0, max=1700)
		public String getPhotos() {
			return photos;
		}
		
		@Length(min=0, max=4000)
		public String getInsuranceinfo() {
			return insuranceinfo;
		}

		public void setInsuranceinfo(String insuranceinfo) {
			this.insuranceinfo = insuranceinfo;
		}

		public void setPhotos(String photos) {
			this.photos = photos;
		}

		public List<CarServe> getCarServes() {
			return carServes;
		}

		public void setCarServes(List<CarServe> carServes) {
			this.carServes = carServes;
		}

		public BigDecimal getForegift() {
			return foregift;
		}

		public void setForegift(BigDecimal foregift) {
			this.foregift = foregift;
		}
		
		
		
}
